/*
 * FairyEvolutionRateResource.h
 *
 *  Created on: 2014. 4. 30.
 *      Author: mega
 */

#ifndef FAIRYEVOLUTIONRATERESOURCE_H_
#define FAIRYEVOLUTIONRATERESOURCE_H_

#include <map>

namespace ProjectZ { namespace NResource {

class FairyEvolutionRateResource
{
public:
	struct Flyweight
	{
		int _QUALITY;
		int _DEFAULT_RATE;
		int _EVENT_RATE;
	};

public:
	FairyEvolutionRateResource();
	virtual ~FairyEvolutionRateResource();

	bool		LoadResource();
	Flyweight *	GetFly(int quality);

private:
	void	Clear();

public:
	typedef std::map<int, Flyweight *>		RATETREE;

private:
	RATETREE	clsFlyTree;
};

} /* namespace NResource */ } /* namespace ProjectZ */

#endif /* FAIRYEVOLUTIONRATERESOURCE_H_ */
